package com.myccb.app.base;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;

/**
 * Created by hyt on 2017/12/1.
 */

public class BaseFragment extends Fragment {
    private Activity activity;
    private boolean isCreate=false;
    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        activity=getActivity();
        isCreate=true;
    }

    protected void overridePendingTransition(int enterAnim,int exitAnim){
        activity.overridePendingTransition(enterAnim, exitAnim);
    }

    public boolean isCreate(){
        return isCreate;
    }

}
